import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        //Scanner Random  工具类
        Random rad=new Random();
        System.out.println("请输入第一个数");
        Scanner Start =new Scanner(System.in);//键盘录入1
        System.out.println("第二个数");
        Scanner end =new Scanner(System.in);//键盘录入42
        System.out.println(rad.nextInt(Start.nextInt(),end.nextInt()));
        Start.close();
        end.close();
        //1 for循环遍历//5 point
        String arr[]=new String[]{"a","b","c","d"};
        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }
        //2 foreach 遍历//5 point
        int arrTwo[]=new int[]{1,2,3,4};
        for(int item :arrTwo){
            System.out.println(item);
        }

    }
}